//
//  CellForContent.m
//  喜马拉雅FM
//
//  Created by dllo on 16/1/30.
//  Copyright © 2016年 lanou.com. All rights reserved.
//

#import "CellForContent.h"
#import "ModelForSecendVC.h"
@interface CellForContent ()

@property (nonatomic, retain) UILabel *labelForTitle;

@end

@implementation CellForContent


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}
- (void)createSubViews {

    self.labelForTitle = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, [UIScreen mainScreen].bounds.size.width - 70, 50)];
    [self.contentView addSubview:self.labelForTitle];
    self.labelForTitle.text = @"[我们办人事讲堂] 凤凰网人力资源中心总经理李琳:职场女性的N个禁忌";
    self.labelForTitle.numberOfLines = 0;
}

- (void)passModelForCell:(ModelForSecendVC *)model {

    self.labelForTitle.text = model.title;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
